/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sessionBeans;

import entity.Job;
import entity.Roles;
import entity.Users;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Minh Luc
 */
@Local
public interface UsersFacadeLocal {

    void create(Users users);

    void edit(Users users);

    void remove(Users users);

    Users find(Object id);

    List<Users> findAll();

    List<Users> findRange(int[] range);

    int count();

    Users checkLogin(String userName, String password);

    Users hasEmail(String email);

    Users hasAnswer(String Username,String Answer);

    Users findByCodeRegister(String RegisterCode);

    List<entity.Users> findByRoleName(String roleName);

    List<Users> findAllCodeNotRegister();

}
